    package com.csun.cmny.provider.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

    public class Function implements Serializable {
        private Integer id;	//功能id

        private String name;//功能名称

        private String code;//功能代码

        private String disc;//功能描述

        private Integer pId;//父级功能id

        private Integer homeId;//机构id

        private Integer valid;//是否有效 0-无效 1-有效

        private Date createTime;//创建时间

        private Date modifyTime;//修改时间

        private Integer modifier;//修改人id

        private List<Function> functionList;

        private static final long serialVersionUID = 1L;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDisc() {
            return disc;
        }

        public void setDisc(String disc) {
            this.disc = disc;
        }

        public Integer getpId() {
            return pId;
        }

        public void setpId(Integer pId) {
            this.pId = pId;
        }

        public Integer getHomeId() {
            return homeId;
        }

        public void setHomeId(Integer homeId) {
            this.homeId = homeId;
        }

        public Integer getValid() {
            return valid;
        }

        public void setValid(Integer valid) {
            this.valid = valid;
        }

        public Date getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
        }

        public Date getModifyTime() {
            return modifyTime;
        }

        public void setModifyTime(Date modifyTime) {
            this.modifyTime = modifyTime;
        }

        public Integer getModifier() {
            return modifier;
        }

        public void setModifier(Integer modifier) {
            this.modifier = modifier;
        }

        public List<Function> getFunctionList() {
            return functionList;
        }

        public void setFunctionList(List<Function> functionList) {
            this.functionList = functionList;
        }

        @Override
        public boolean equals(Object that) {
            if (this == that) {
                return true;
            }
            if (that == null) {
                return false;
            }
            if (getClass() != that.getClass()) {
                return false;
            }
            Function other = (Function) that;
            return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
                && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
                && (this.getDisc() == null ? other.getDisc() == null : this.getDisc().equals(other.getDisc()))
                && (this.getpId() == null ? other.getpId() == null : this.getpId().equals(other.getpId()))
                && (this.getHomeId() == null ? other.getHomeId() == null : this.getHomeId().equals(other.getHomeId()))
                && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
                && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()));
        }

        @Override
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
            result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
            result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
            result = prime * result + ((getDisc() == null) ? 0 : getDisc().hashCode());
            result = prime * result + ((getpId() == null) ? 0 : getpId().hashCode());
            result = prime * result + ((getHomeId() == null) ? 0 : getHomeId().hashCode());
            result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
            result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
            result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
            result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
            return result;
        }

        @Override
        public String toString() {
            StringBuilder sb = new StringBuilder();
            sb.append(getClass().getSimpleName());
            sb.append(" [");
            sb.append("Hash = ").append(hashCode());
            sb.append(", id=").append(id);
            sb.append(", name=").append(name);
            sb.append(", code=").append(code);
            sb.append(", disc=").append(disc);
            sb.append(", pId=").append(pId);
            sb.append(", homeId=").append(homeId);
            sb.append(", valid=").append(valid);
            sb.append(", createTime=").append(createTime);
            sb.append(", modifyTime=").append(modifyTime);
            sb.append(", modifier=").append(modifier);
            sb.append(", serialVersionUID=").append(serialVersionUID);
            sb.append("]");
            return sb.toString();
        }
    }